package com.ellecity06.cwhiskymall.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.ellecity06.common.base.BaseAdapter
import com.ellecity06.cwhiskymall.bean.TagItem
import com.ellecity06.cwhiskymall.databinding.ItemGoodTagBinding

/**
 * @author ellecity06
 * @time 2024/10/25 11:36
 * @des
 */
class GoodTagAdapter : BaseAdapter<TagItem, ItemGoodTagBinding>() {

    override fun inflateBinding(layoutInflater: LayoutInflater, parent: ViewGroup, viewType: Int): ItemGoodTagBinding {
        return ItemGoodTagBinding.inflate(layoutInflater)
    }

    override fun convert(binding: ItemGoodTagBinding, position: Int, item: TagItem) {
        binding.tvTag.text = item?.name
    }
}